package com.dangz.dans.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 发送目标.
 * @author dangz
 * @since 2018/6/25 11:39
 */
@Entity
@Table(name = "clientinfo")
public class ClientInfo {
    private String clientId;
    private Long connected;
    private Long mostSignbits;
    private Long leastSignbits;
    private Date lastConnectedDate;
    private String userId;

    @Id
    @NotNull
    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public Long getConnected() {
        return connected;
    }

    public void setConnected(Long connected) {
        this.connected = connected;
    }

    public Long getMostSignbits() {
        return mostSignbits;
    }

    public void setMostSignbits(Long mostSignbits) {
        this.mostSignbits = mostSignbits;
    }

    public Long getLeastSignbits() {
        return leastSignbits;
    }

    public void setLeastSignbits(Long leastSignbits) {
        this.leastSignbits = leastSignbits;
    }

    public Date getLastConnectedDate() {
        return lastConnectedDate;
    }

    public void setLastConnectedDate(Date lastConnectedDate) {
        this.lastConnectedDate = lastConnectedDate;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
